package com.yang.smsgateway.enums;

import lombok.Getter;

@Getter
public enum CMPP2DeliverEnums {
    DELIVRD("DELIVRD","Message is delivered to destination"),
    EXPIRED("EXPIRED","Message validity period has expired"),
    DELETED("DELETED","Message has been deleted"),
    UNDELIV("UNDELIV","Message is undeliverable"),
    ACCEPTD("ACCEPTD","Message is in accepted state"),
    UNKNOWN("UNKNOWN","Message is in invalid state"),
    REJECTD("REJECTD","Message is in a rejected state"),
    ;

    private String stat;
    private String description;

    CMPP2DeliverEnums(String stat, String description) {
        this.stat = stat;
        this.description = description;
    }

    public static String getDescription(String stat){
        String description = "";
        for (CMPP2DeliverEnums e : values()) {
            if (e.getStat().equals(stat)){
                description = e.getDescription();
            }
        }
        return description;
    }
}
